<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Starshatter_Open: NetSock Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Starshatter_Open
   </div>
   <div id="projectbrief">Open source Starshatter engine</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_net_sock.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">NetSock Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_net_sock_8h_source.html">NetSock.h</a>&gt;</code></p>

<p><a href="class_net_sock-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a70fc60483e62e35e8de2454e5c784e94"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94">SELECT_TYPE</a> { <a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94adf2d4ad8c99b3c5cf7ef3f51831abae6">SELECT_READ</a> =  1, 
<a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94ad87f007fc5c613b359329218ed720c9c">SELECT_WRITE</a> =  2
 }</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3d9d58ef333d84cf0d7a4309ad7d06d7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a3d9d58ef333d84cf0d7a4309ad7d06d7">NetSock</a> (bool stream=false)</td></tr>
<tr class="memitem:a09adc283f2df504ca78cbb428be19679"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a09adc283f2df504ca78cbb428be19679">NetSock</a> (const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;addr, bool stream=false)</td></tr>
<tr class="memitem:a1b22f121608028b31157e8c97cf588ef"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a1b22f121608028b31157e8c97cf588ef">~NetSock</a> ()</td></tr>
<tr class="memitem:a8d495768f9be5c8441b919550be04a9f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a8d495768f9be5c8441b919550be04a9f">bind</a> (const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;addr)</td></tr>
<tr class="memitem:aa2dae8534377020bb89509c9eff5cf65"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#aa2dae8534377020bb89509c9eff5cf65">connect</a> (const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;addr)</td></tr>
<tr class="memitem:a04eb7961647c09f52faac33660dbf31c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a04eb7961647c09f52faac33660dbf31c">listen</a> (int max_connections=5)</td></tr>
<tr class="memitem:ad6afb507802fc004df911e88b9cd9968"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_net_sock.html">NetSock</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#ad6afb507802fc004df911e88b9cd9968">accept</a> (<a class="el" href="class_net_addr.html">NetAddr</a> *addr=0)</td></tr>
<tr class="memitem:a56e6a5933a3320aba9ff145e1c7a18cf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a56e6a5933a3320aba9ff145e1c7a18cf">available</a> ()</td></tr>
<tr class="memitem:a96395c1ea5052e58626b3dd2dcf7e5a9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a96395c1ea5052e58626b3dd2dcf7e5a9">send</a> (<a class="el" href="class_text.html">Text</a> msg)</td></tr>
<tr class="memitem:a694d78850eeea856e71a6472ac4610c0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_text.html">Text</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a694d78850eeea856e71a6472ac4610c0">recv</a> ()</td></tr>
<tr class="memitem:a0fe46d79c00ced2b4c5647102a0efe6b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a0fe46d79c00ced2b4c5647102a0efe6b">sendto</a> (<a class="el" href="class_text.html">Text</a> msg, const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;dest)</td></tr>
<tr class="memitem:abcb105e2a8b1f2919bb0ef026ccb8252"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_text.html">Text</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#abcb105e2a8b1f2919bb0ef026ccb8252">recvfrom</a> (<a class="el" href="class_net_addr.html">NetAddr</a> *a=0)</td></tr>
<tr class="memitem:a958e61f364111c518ef11dff87d8dc4a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a958e61f364111c518ef11dff87d8dc4a">select</a> (<a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94">SELECT_TYPE</a> t=<a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94adf2d4ad8c99b3c5cf7ef3f51831abae6">SELECT_READ</a>, long seconds=0, long microseconds=0)</td></tr>
<tr class="memitem:ade92b7c993acd58f0aae7d379ab51d7e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#ade92b7c993acd58f0aae7d379ab51d7e">shutdown_input</a> ()</td></tr>
<tr class="memitem:ac9a2c1d53c9faf63fe326fe6b652702a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#ac9a2c1d53c9faf63fe326fe6b652702a">shutdown_output</a> ()</td></tr>
<tr class="memitem:af395a5ee4e64562a1cb8538b90f1804a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#af395a5ee4e64562a1cb8538b90f1804a">set_timeout</a> (int msecs)</td></tr>
<tr class="memitem:a1549467d08acae07694e71aecbb36b19"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a1549467d08acae07694e71aecbb36b19">close</a> ()</td></tr>
<tr class="memitem:a54f06ea06d55b0884e146d33d5e6e115"><td class="memItemLeft" align="right" valign="top">DWORD&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a54f06ea06d55b0884e146d33d5e6e115">max_packet_size</a> () const </td></tr>
<tr class="memitem:a9803ec8e159719cf11b9e3c87e7ec753"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a9803ec8e159719cf11b9e3c87e7ec753">is_stream</a> () const </td></tr>
<tr class="memitem:abf9bb0055afc739a8c7449ff60d6551a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#abf9bb0055afc739a8c7449ff60d6551a">is_closed</a> () const </td></tr>
<tr class="memitem:ad7bc5351ba926386e48c92d15fd90693"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#ad7bc5351ba926386e48c92d15fd90693">status</a> () const </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a99cc7c8b7e015edf20bf1defaab8f667"><td class="memItemLeft" align="right" valign="top">static const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_net_sock.html#a99cc7c8b7e015edf20bf1defaab8f667">TYPENAME</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_net_sock_8h_source.html#l00026">26</a> of file <a class="el" href="_net_sock_8h_source.html">NetSock.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a70fc60483e62e35e8de2454e5c784e94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94">NetSock::SELECT_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a70fc60483e62e35e8de2454e5c784e94adf2d4ad8c99b3c5cf7ef3f51831abae6"></a>SELECT_READ</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a70fc60483e62e35e8de2454e5c784e94ad87f007fc5c613b359329218ed720c9c"></a>SELECT_WRITE</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="_net_sock_8h_source.html#l00031">31</a> of file <a class="el" href="_net_sock_8h_source.html">NetSock.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3d9d58ef333d84cf0d7a4309ad7d06d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NetSock::NetSock </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>str</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Server-side socket constructor </p>

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00028">28</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a09adc283f2df504ca78cbb428be19679"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NetSock::NetSock </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>str</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Client-side socket constructor</p>
<p>Will connect to server at "addr" </p>

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00052">52</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1b22f121608028b31157e8c97cf588ef"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NetSock::~NetSock </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00063">63</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad6afb507802fc004df911e88b9cd9968"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_net_sock.html">NetSock</a> * NetSock::accept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_net_addr.html">NetAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00092">92</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a56e6a5933a3320aba9ff145e1c7a18cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::available </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00121">121</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8d495768f9be5c8441b919550be04a9f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::bind </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00071">71</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a1549467d08acae07694e71aecbb36b19"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00319">319</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aa2dae8534377020bb89509c9eff5cf65"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::connect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00078">78</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abf9bb0055afc739a8c7449ff60d6551a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool NetSock::is_closed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8h_source.html#l00059">59</a> of file <a class="el" href="_net_sock_8h_source.html">NetSock.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9803ec8e159719cf11b9e3c87e7ec753"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool NetSock::is_stream </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8h_source.html#l00058">58</a> of file <a class="el" href="_net_sock_8h_source.html">NetSock.h</a>.</p>

</div>
</div>
<a class="anchor" id="a04eb7961647c09f52faac33660dbf31c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::listen </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_connections</em> = <code>5</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00085">85</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a54f06ea06d55b0884e146d33d5e6e115"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DWORD NetSock::max_packet_size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00334">334</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a694d78850eeea856e71a6472ac4610c0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_text.html">Text</a> NetSock::recv </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00142">142</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="abcb105e2a8b1f2919bb0ef026ccb8252"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_text.html">Text</a> NetSock::recvfrom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_net_addr.html">NetAddr</a> *&#160;</td>
          <td class="paramname"><em>a</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00197">197</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a958e61f364111c518ef11dff87d8dc4a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::select </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94">SELECT_TYPE</a>&#160;</td>
          <td class="paramname"><em>t</em> = <code><a class="el" href="class_net_sock.html#a70fc60483e62e35e8de2454e5c784e94adf2d4ad8c99b3c5cf7ef3f51831abae6">SELECT_READ</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>seconds</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>microseconds</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00228">228</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a96395c1ea5052e58626b3dd2dcf7e5a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_text.html">Text</a>&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00135">135</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a0fe46d79c00ced2b4c5647102a0efe6b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::sendto </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_text.html">Text</a>&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_net_addr.html">NetAddr</a> &amp;&#160;</td>
          <td class="paramname"><em>dest</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00189">189</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af395a5ee4e64562a1cb8538b90f1804a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::set_timeout </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>msecs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00254">254</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ade92b7c993acd58f0aae7d379ab51d7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::shutdown_input </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00299">299</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac9a2c1d53c9faf63fe326fe6b652702a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::shutdown_output </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8cpp_source.html#l00309">309</a> of file <a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ad7bc5351ba926386e48c92d15fd90693"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int NetSock::status </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8h_source.html#l00060">60</a> of file <a class="el" href="_net_sock_8h_source.html">NetSock.h</a>.</p>

</div>
</div>
<a class="anchor" id="a99cc7c8b7e015edf20bf1defaab8f667"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static const char* NetSock::TYPENAME </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_net_sock_8h_source.html#l00029">29</a> of file <a class="el" href="_net_sock_8h_source.html">NetSock.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/SRC/StarshatterSVN/NetEx/<a class="el" href="_net_sock_8h_source.html">NetSock.h</a></li>
<li>D:/SRC/StarshatterSVN/NetEx/<a class="el" href="_net_sock_8cpp_source.html">NetSock.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_net_sock.html">NetSock</a></li>
    <li class="footer">Generated on Tue Jun 5 2012 20:48:04 for Starshatter_Open by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li>
  </ul>
</div>
</body>
</html>
